Profiling - Configure Microsoft Visual Studio
WonderLeak Help
Version 1.4.0
To configure a project built by Microsoft Visual Studio, the application to be profiled should be built with the following settings applied. By default, a projects Debug configuration in Visual Studio 2019 sets all of the required settings to a suitable value.
Win32 and Win64 Platform
In the C/C++
-> Code Generation
settings, for best results set the Runtime Library to be Multi-threaded Debug DLL (/MDd)
for a Debug build or Multi-threaded DLL (/MD)
for a Release build.
In the C/C++
-> General
settings, set Debug Information Format
to be either Program Database (/Zi)
or Program Database for Edit And Continue (/ZI)
.
In the Linker
-> Debugging
settings, set Generate Debug Info
to either Generate Debug Information (/DEBUG)
or Generate Debug Information optimized for sharing and publishing (/DEBUG:FULL)
.
Win32 Only
For the Win32 platform you should ensure that the Frame Pointer Omission (FPO) optimization is disabled in order to allow WonderLeak to accurately capture stack traces.